package net.borderwars.util;

import java.util.Random;

/**
 * @author Eric
 *         Date: Dec 5, 2003
 *         Time: 4:12:16 PM
 */
public class RandomGen {
    private static Random r = new Random (100);

    public static int uniformInt (int a, int b) {
        return ((int) (a + (b - a) * r.nextFloat ()));
    }

    public static double uniformDouble (double a, double b) {
        return ((a + (b - a) * r.nextDouble ()));
    }

    public static double radian () {
        return (uniformDouble ((double) 0, (double) 2 * Math.PI));
    }

}
